package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_bed_type
 * @author 
 */
public class SesBedType implements Serializable {
    /**
     * ID,主键PK
     */
    private Long bedtypeid;

    /**
     * 设备型号
     */
    private String bedtypemodel;

    /**
     * 厂家联系地址
     */
    private String bedtypeaddress;

    /**
     * 厂家联系电话
     */
    private String bedtypephone;

    /**
     * 厂家联系人
     */
    private String bedtypecontacts;

    /**
     * 购买时间
     */
    private String bedtypetime;

    /**
     * 床位状态:0.闲(默认),1.忙,2.异常
     */
    private Integer bedtypestatus;

    /**
     * 床位电量(默认100%)
     */
    private String bedtypebatterypower;

    /**
     * 设备编号(唯一)
     */
    private String bedtypecode;

    /**
     * 床位状态更新时间
     */
    private String bedtypestatustime;

    /**
     * 库存
     */
    private Long bedtypeinventory;

    /**
     * 单价
     */
    private Float bedtypeprice;

    private static final long serialVersionUID = 1L;

    public Long getBedtypeid() {
        return bedtypeid;
    }

    public void setBedtypeid(Long bedtypeid) {
        this.bedtypeid = bedtypeid;
    }

    public String getBedtypemodel() {
        return bedtypemodel;
    }

    public void setBedtypemodel(String bedtypemodel) {
        this.bedtypemodel = bedtypemodel;
    }

    public String getBedtypeaddress() {
        return bedtypeaddress;
    }

    public void setBedtypeaddress(String bedtypeaddress) {
        this.bedtypeaddress = bedtypeaddress;
    }

    public String getBedtypephone() {
        return bedtypephone;
    }

    public void setBedtypephone(String bedtypephone) {
        this.bedtypephone = bedtypephone;
    }

    public String getBedtypecontacts() {
        return bedtypecontacts;
    }

    public void setBedtypecontacts(String bedtypecontacts) {
        this.bedtypecontacts = bedtypecontacts;
    }

    public String getBedtypetime() {
        return bedtypetime;
    }

    public void setBedtypetime(String bedtypetime) {
        this.bedtypetime = bedtypetime;
    }

    public Integer getBedtypestatus() {
        return bedtypestatus;
    }

    public void setBedtypestatus(Integer bedtypestatus) {
        this.bedtypestatus = bedtypestatus;
    }

    public String getBedtypebatterypower() {
        return bedtypebatterypower;
    }

    public void setBedtypebatterypower(String bedtypebatterypower) {
        this.bedtypebatterypower = bedtypebatterypower;
    }

    public String getBedtypecode() {
        return bedtypecode;
    }

    public void setBedtypecode(String bedtypecode) {
        this.bedtypecode = bedtypecode;
    }

    public String getBedtypestatustime() {
        return bedtypestatustime;
    }

    public void setBedtypestatustime(String bedtypestatustime) {
        this.bedtypestatustime = bedtypestatustime;
    }

    public Long getBedtypeinventory() {
        return bedtypeinventory;
    }

    public void setBedtypeinventory(Long bedtypeinventory) {
        this.bedtypeinventory = bedtypeinventory;
    }

    public Float getBedtypeprice() {
        return bedtypeprice;
    }

    public void setBedtypeprice(Float bedtypeprice) {
        this.bedtypeprice = bedtypeprice;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesBedType other = (SesBedType) that;
        return (this.getBedtypeid() == null ? other.getBedtypeid() == null : this.getBedtypeid().equals(other.getBedtypeid()))
            && (this.getBedtypemodel() == null ? other.getBedtypemodel() == null : this.getBedtypemodel().equals(other.getBedtypemodel()))
            && (this.getBedtypeaddress() == null ? other.getBedtypeaddress() == null : this.getBedtypeaddress().equals(other.getBedtypeaddress()))
            && (this.getBedtypephone() == null ? other.getBedtypephone() == null : this.getBedtypephone().equals(other.getBedtypephone()))
            && (this.getBedtypecontacts() == null ? other.getBedtypecontacts() == null : this.getBedtypecontacts().equals(other.getBedtypecontacts()))
            && (this.getBedtypetime() == null ? other.getBedtypetime() == null : this.getBedtypetime().equals(other.getBedtypetime()))
            && (this.getBedtypestatus() == null ? other.getBedtypestatus() == null : this.getBedtypestatus().equals(other.getBedtypestatus()))
            && (this.getBedtypebatterypower() == null ? other.getBedtypebatterypower() == null : this.getBedtypebatterypower().equals(other.getBedtypebatterypower()))
            && (this.getBedtypecode() == null ? other.getBedtypecode() == null : this.getBedtypecode().equals(other.getBedtypecode()))
            && (this.getBedtypestatustime() == null ? other.getBedtypestatustime() == null : this.getBedtypestatustime().equals(other.getBedtypestatustime()))
            && (this.getBedtypeinventory() == null ? other.getBedtypeinventory() == null : this.getBedtypeinventory().equals(other.getBedtypeinventory()))
            && (this.getBedtypeprice() == null ? other.getBedtypeprice() == null : this.getBedtypeprice().equals(other.getBedtypeprice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBedtypeid() == null) ? 0 : getBedtypeid().hashCode());
        result = prime * result + ((getBedtypemodel() == null) ? 0 : getBedtypemodel().hashCode());
        result = prime * result + ((getBedtypeaddress() == null) ? 0 : getBedtypeaddress().hashCode());
        result = prime * result + ((getBedtypephone() == null) ? 0 : getBedtypephone().hashCode());
        result = prime * result + ((getBedtypecontacts() == null) ? 0 : getBedtypecontacts().hashCode());
        result = prime * result + ((getBedtypetime() == null) ? 0 : getBedtypetime().hashCode());
        result = prime * result + ((getBedtypestatus() == null) ? 0 : getBedtypestatus().hashCode());
        result = prime * result + ((getBedtypebatterypower() == null) ? 0 : getBedtypebatterypower().hashCode());
        result = prime * result + ((getBedtypecode() == null) ? 0 : getBedtypecode().hashCode());
        result = prime * result + ((getBedtypestatustime() == null) ? 0 : getBedtypestatustime().hashCode());
        result = prime * result + ((getBedtypeinventory() == null) ? 0 : getBedtypeinventory().hashCode());
        result = prime * result + ((getBedtypeprice() == null) ? 0 : getBedtypeprice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bedtypeid=").append(bedtypeid);
        sb.append(", bedtypemodel=").append(bedtypemodel);
        sb.append(", bedtypeaddress=").append(bedtypeaddress);
        sb.append(", bedtypephone=").append(bedtypephone);
        sb.append(", bedtypecontacts=").append(bedtypecontacts);
        sb.append(", bedtypetime=").append(bedtypetime);
        sb.append(", bedtypestatus=").append(bedtypestatus);
        sb.append(", bedtypebatterypower=").append(bedtypebatterypower);
        sb.append(", bedtypecode=").append(bedtypecode);
        sb.append(", bedtypestatustime=").append(bedtypestatustime);
        sb.append(", bedtypeinventory=").append(bedtypeinventory);
        sb.append(", bedtypeprice=").append(bedtypeprice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}